package com.gzx.spring.apis.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.gzx.risk.core.pojo.CommonResult;
import com.gzx.risk.core.tags.CommonLog;
import com.gzx.spring.apis.service.JishuService;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;

@Tag(name = "极数apis验证")
@RestController
@RequestMapping("/apis/jishu")
public class ApisJishuController {

	@Resource
	private JishuService jishuService;

	@Operation(summary = "ed006_v1")
	@CommonLog("ed006_v1")
	@PostMapping("/ed006_v1")
	public CommonResult<String> ed006_v1(
			@RequestParam(name = "id") String id, @RequestParam(name = "phone") String phone) throws Exception {
		String result = jishuService.ed006_v1(id, phone);
		return CommonResult.ok(result);
	}
	
	@Operation(summary = "edb003_v8")
	@CommonLog("edb003_v8")
	@PostMapping("/edb003_v8")
	public CommonResult<String> edb003_v8(@RequestParam(name = "name") String name,
			@RequestParam(name = "id") String id, @RequestParam(name = "phone") String phone) throws Exception {
		String result =jishuService.edb003_v8(name, id, phone);
		return CommonResult.ok(result);
	}
}
